package demo01extends;

public class Demo01Extends {
    public static void main(String[] args) {
        Teacher t=new Teacher();
        t.method();
        System.out.println(t.fu);
        System.out.println(t.num);//优先使用teacher t=new Teacher()等号左边的类的成员
        t.show();
    }
}
